package com.xnyzc.lhy.mis.service.cms.config;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.mis.entity.param.cms.config.CashWithdrawalConfigParam;
import com.xnyzc.lhy.mis.entity.cms.config.OaSysCashWithdrawalConfig;


/**
 * <p>
 * 提现规则 服务类
 * </p>
 *
 * @author baoyaze
 * @since 2019-10-20
 */
public interface IOaSysCashWithdrawalConfigService extends IService<OaSysCashWithdrawalConfig>
{
    Rv getCashWithdrawalConfigList(CashWithdrawalConfigParam configParam);

    /**
     * 根据司机ID获取提现规则
     * @param driverId 司机ID
     * @return Rv
     */
    OaSysCashWithdrawalConfig getCashWithdrawalConfig(Long driverId);

    Rv getCashWithdrawalConfigInfo(Long configId);

    Rv addConfig(OaSysCashWithdrawalConfig cashWithdrawalConfig);

    Rv updateConfig(OaSysCashWithdrawalConfig cashWithdrawalConfig);

    Rv deleteConfig(OaSysCashWithdrawalConfig cashWithdrawalConfig);

}
